import { BaseDto, PageRes, Res } from '@/modules/common/common.dto'
import { HttpReq } from '@/modules/common/http'
import { Body, Controller, Delete, Get, Post, Put, Query } from 'butterfly-decorators'

export interface Application extends BaseDto {
  applicationLogo: string
  id?: number
  departmentName?: string
  departmentDesc?: string
  departmentLogo?: any
  apiBaseUrl?: string
  databaseUrl?: string
  databaseUserName?: string
  databasePassword?: string
  databaseName?: string
  createTime?: any
  updateTime?: any
}

@Controller('department')
export class ApplicationController extends HttpReq {
  @Get()
  findListReq(@Query() _query?: any): PageRes<Application> | void {}

  @Post()
  addOneReq(@Body() _body: any): Res<any> | void {}

  @Put()
  updateOneReq(@Body() _body: any): Res<any> | void {}

  @Delete()
  deleteByIdsReq(@Body() _body: any[]): Res<any> | void {}
}
